//
//  SettingsViewController.h
//  Gabber
//
//  Created by 陆惠国 on 11-8-26.
//  Copyright 2011年 恒生聚源. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SettingsViewController : TTTableViewController{
    UISwitch* _showEmptyGroupSwitch;
    UISwitch* _showOfflineUsersSwitch;
    UISwitch* _groupOfflineUsersSwitch;
    UISwitch* _openGroupsSwitch;
    
    UISwitch* _playMessageSentSoundSwitch;
    UISwitch* _playMessageReceivedSoundSwitch;

    
    UISwitch* _saveChatHistorySwitch;
    UISwitch* _showChatAvatarSwitch;
    UISwitch* _showChatTimestampSwitch;
}



@property (nonatomic, retain) UISwitch* showEmptyGroupSwitch;
@property (nonatomic, retain) UISwitch* showOfflineUsersSwitch;
@property (nonatomic, retain) UISwitch* groupOfflineUsersSwitch;
@property (nonatomic, retain) UISwitch* openGroupsSwitch;

@property (nonatomic, retain) UISwitch* playMessageSentSoundSwitch;
@property (nonatomic, retain) UISwitch* playMessageReceivedSoundSwitch;

@property (nonatomic, retain) UISwitch* saveChatHistorySwitch;
@property (nonatomic, retain) UISwitch* showChatAvatarSwitch;
@property (nonatomic, retain) UISwitch* showChatTimestampSwitch;

- (void) showEmptyGroupSwitchAction:(id) sender;
- (void) showOfflineUsersSwitchAction:(id) sender;
- (void) groupOfflineUsersSwitchAction:(id) sender;
- (void) openGroupsSwitchAction:(id) sender;
- (void) playMessageSentSoundSwitchAction:(id) sender;
- (void) playMessageReceivedSoundSwitchAction:(id) sender;
- (void) saveChatHistorySwitchAction:(id) sender;
- (void) showChatAvatarSwitchAction:(id) sender;
- (void) showChatTimestampSwitchAction:(id) sender;
- (void)clearChatHistoryAction:(id) sender;
- (void) logoutAction:(id) sender;

@end
